package com.neusoft.feign;

import com.neusoft.core.CommonResult;
import com.neusoft.core.Food;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name="food-server", fallback = FoodFeignClientCallBack.class)
public interface FoodFeignClient {
    @GetMapping("/FoodController/Food")
    public CommonResult<List<Food>> listFoodByBusinessId(Food food);
}
